<?php
defined('IN_TS') or die('Access Denied.');

function illustrations () {
    $arrIllustrations = aac('svg')->findAll('svg_board',array('isaudit'=>0,'cateid' => 2),'addtime desc','boardid,name,count_svg,count_view,count_comment,addtime',10);

    foreach ($arrIllustrations as $key => $item) {
        $arrIllustrations[$key]['name'] = tsTitle($item['name']);
        $arrIllustrations[$key]['illustrations'] =aac('svg')->getBoardById($item['boardid'],'9');
    }

    include template('illustrations','illustrations');
}

addAction('home_content','illustrations');